package edu.jd.movieplatform.user.long_comment.dao;

import edu.jd.movieplatform.user.long_comment.LongComment;
import edu.jd.movieplatform.user.long_comment.LongCommentDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @descriptions:
 * @data: 2021/7/9 22:14
 */
public interface LongCommentDao {
    boolean createLongCommentDto(LongCommentDto dto);

    @Select("select max(long_com_id) + 1 from long_comment")
    Integer findLongCommentNewNum();

    List<LongComment> getLongCommentList(Integer mov_id);
}
